package com.diabeco.model.measures;

import java.util.Date;

import android.text.format.DateFormat;

public class PhysicalExerciseMeasure {
	private Long id;
	private Long date;
	private String exerciseName;
	private Long minutes;
	private String intensity;

	public PhysicalExerciseMeasure() {
		this.setDate(new Date().getTime());
		this.setExerciseName("NO ESTABLECIDO");
		this.setIntensity("NO ESTABLECIDO");
		this.setMinutes(0L);
	}

	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public Long getDate() {
		return date;
	}


	public void setDate(Long date) {
		this.date = date;
	}


	public String getExerciseName() {
		return exerciseName;
	}


	public void setExerciseName(String exerciseName) {
		this.exerciseName = exerciseName;
	}


	public Long getMinutes() {
		return minutes;
	}


	public void setMinutes(Long minutes) {
		this.minutes = minutes;
	}


	public String getIntensity() {
		return intensity;
	}


	public void setIntensity(String intensity) {
		this.intensity = intensity;
	}


	public String toString() {
		return DateFormat.format("dd/MMM hh:mm", this.getDate()) + ": " + this.getExerciseName() + " (" + this.getIntensity() + " " + this.getMinutes() + " minutos ";
	}
}
